package com.yangkunhong.www.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.One;

import java.util.Date;

/**
 * 用户实体
 *
 * @author 杨坤红
 */
//自动生成get、set lombok
@Data
//创建无参构造  lombok
@NoArgsConstructor
//创建全参构造  lombok
@AllArgsConstructor
//生成Builder类，支持链式操作  lombok
@Builder
//声明该实体类对应的表名称 mybatisPlus
//@TableName("user")
public class Illness {
    /**
     * 主键ID
     * 需要设置为自增
     */
    @TableId(type = IdType.AUTO)
    public Integer id;

    public Integer kindId;

    public String illnessName;

    public String includeReason;

    public String illnessSymptom;

    public String specialSymptom;

    public Date createTime;

    public Date updateTime;
    /*
    不是表的字段
     */
    @TableField(exist = false)
    private String kindName;
    @TableField(exist = false)
    private Integer pageView;


}
